package com.company;

public class L_Square extends L_AbstractShape {
    public L_Square(int width,int height)
    {
        super(width,height);
    }
    //重写父类中的抽象方法，实现计算正方形面积的功能
    @Override
    public double area()
    {
        return width*height;
    }
}
